<?php 
?>
1.创建项目
安装手脚架 composer global require "laravel/installer"
laravel new blogphp就可以创建项目
将.env.example 文件重命名为 .env
php artisan key:generate 生成密码

2.配置虚拟主机
Listen 9000
<VirtualHost  *:9000>
    ###SiteName blogphp_9000
    DocumentRoot "D:/zd04/blogphp/public"
    <Directory "D:/zd04/blogphp/public">
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride all
        Require all granted
    </Directory>
    #ErrorLog    "../../logs/Apache/blogphp_9000-error.log"
    #TransferLog "../../logs/Apache/blogphp_9000-access.log"
</VirtualHost>

目录结构
Root 
|---app 
|---bootstrap 
|---config 
|---database 
|---public 
|---resources 
|---routes 
|---storage 
|---tests 
|---vendor 
App 
|---Console 
|---Events 
|---Exceptions 
|---Http 
|---Jobs 
|---Listeners 
|---Mail 
|---Notifications 
|---Policies 
|---Providers 

# rails on RUBY
安装手脚架 gem install rails
rails创建项目
rails new blogruby
会自动安装依赖

运行服务是 bundle exec rails s

目录结构
app/
bin/
config/
config.ru
db/
Gemfile
Gemfile.lock
lib/
log/
public/
Rakefile
README.md
test/
tmp/
vendor/
.gitignore


#egg.js
安装 脚手架
cnpm i egg-init -g
egg-init blogjs --type=simple

运行服务是 cnpm run dev

目录结构
egg-project
├── package.json
├── app.js (可选)
├── agent.js (可选)
├── app
|   ├── router.js
│   ├── controller
│   |   └── home.js
│   ├── service (可选)
│   |   └── user.js
│   ├── middleware (可选)
│   |   └── response_time.js
│   ├── schedule (可选)
│   |   └── my_task.js
│   ├── public (可选)
│   |   └── reset.css
│   ├── view (可选)
│   |   └── home.tpl
│   └── extend (可选)
│       ├── helper.js (可选)
│       ├── request.js (可选)
│       ├── response.js (可选)
│       ├── context.js (可选)
│       ├── application.js (可选)
│       └── agent.js (可选)
├── config
|   ├── plugin.js
|   ├── config.default.js
│   ├── config.prod.js
|   ├── config.test.js (可选)
|   ├── config.local.js (可选)
|   └── config.unittest.js (可选)
└── test
    ├── middleware
    |   └── response_time.test.js
    └── controller
        └── home.test.js

